from django.db import models
class AdminInfo(models.Model):
    id = models.IntegerField(primary_key=True)
    username = models.TextField(max_length=60, null=False)
    password = models.TextField(max_length=60,blank=True, null=False)
    avatar = models.TextField(max_length=60,blank=True, null=False)
    last_login_ip = models.TextField(max_length=60,blank=True, null=False)
    last_login_time = models.DateField(blank=True, null=False)
    add_time = models.DateField(blank=True, null=False)
    update_time = models.TextField(blank=True, null=False)
    deleted = models.SmallIntegerField( null=False)
    role_ids = models.TextField(blank=True,null=False)
    class Meta:
        db_table = "admin_info"
